package com.jack.payment.entity.generate.user;

import com.jack.payment.entity.common.CommonParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "用户的一些基础设置")
public class UserSettingModel extends CommonParam implements Serializable {
    @Schema(description = "与用户进行关联id")
    private String userId;
    @Schema(description = "设置的语言")
    private Integer settingLanguage;
    @Schema(description = "设置的地区")
    private Integer settingRegion;


    @Schema(description = "描述")
    private String motto;
    @Schema(description = "头像")
    private String iconUrl;
    @Schema(description = "最近登录时间")
    private Long lastOneTime;
    @Schema(description = "ip地址")
    private String ipAddress;

    public UserSettingModel(String userId) {
        this.userId = userId;
        this.settingLanguage = 1;
        this.settingRegion = 0;
    }
}
